const p1 = Promise.resolve(1);
const p2 = Promise.resolve(2);
Promise.all([p1, p2]).then(v => console.log(v)); // 输出 [1, 2]

const p3 = Promise.reject("失败");
Promise.all([p1, p3]).catch(e => console.log(e)); // 输出 "失败"（忽略p1的成功）